<!DOCTYPE html>
<html lang="en">
 <title><?=$title?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <link href="../resources/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
     <link href="../resources/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
     <link href="<?=base_url()?>../resources/demo2/css/style.css" rel="stylesheet">
     <script src="http://code.jquery.com/jquery.js"></script>
     <script src="../resources/bootstrap/js/bootstrap.min.js"></script>
      <script src="../resources/bootstrap/js/bootstrap-collapse.js"></script>
      <script src="../resources/bootstrap/js/holder/holder.js"></script>
      <script type="text/javascript">
$(function(){
		
	
		if($('.alert .error').text()==''){
				$('.alert').css('display','none');
			}
})

</script>
      
      
  </head>



<div class="container">

 <form class="form-signin" action="" method="post">
        <h2 class="form-signin-heading">Please sign in</h2>
        <input type="text" class="input-block-level" placeholder="Email address" name="email" value="<?=set_value('email')?>">
        <input type="password" class="input-block-level" placeholder="Password" name="password" value="<?=set_value('password')?>">
        <label class="checkbox">
          <input type="checkbox" value="remember-me" name="remember-me"> Remember me
        </label>
        <button class="btn btn-large btn-primary" type="submit">Sign in</button>
         <hr class="bs-docs-separator">
        <a class="btn" href="<?=site_url('forgot_password')?>">Forgot my password.</a>
         <hr class="bs-docs-separator">
		<div class="alert alert-error">
			<button type="button" class="close" data-dismiss="alert">&times;</button>
			<?=form_error('email', '<li class="error">', '</li>'); ?>
			<?=form_error('password', '<li class="error">', '</li>'); ?>
			<?=isset($error_msg)? '<li class="error">'.$error_msg.'</li>':'';?>
		</div>

	</form>

</div>